package com.example.test14;

import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
public class demo1 {

    @Bean
   public User user(){
       com.example.test14.User user=new com.example.test14.User();
       user.setName("zhangsan");
       user.setID(1);
       user.setAge(18);
       return user;
   }
}
